package com.gljx.web.service;

import com.gljx.web.Entity.Message;

import java.util.Map;

/**
 * @Author: LiXiang
 * @Description :
 * @Date: Created in 2018/2/8 10:30
 */
public interface MessageService {

    public Map<String,Object > selectMessagePage(String rows,
                                                 String page,
                                                 String sort,
                                                 String order,
                                                 String ISLOOK,
                                                 String messageBegin,
                                                 String messageEnd,
                                                 String TYPE);

    public Map<String,Object > selectItemPage(String rows,
                                              String page,
                                              String sort,
                                              String order,
                                              String ISUSE,
                                              String messageBegin,
                                              String messageEnd,
                                              String TYPE);

    public Integer insert(Message message);

    Message selectByPrimaryKey(Integer id);

    Integer updateMessage(Integer id);

    Integer editItem(Integer id);

    /**
     * 根据单据修改已读未读  0未读
     * @return
     */
    Integer isUseAudit(String companyID,
                              String fnumber,
                              Integer isuse,
                              String projectID);
}
